package schoolword;

public class Test1 {
    public static void main(String[] args) {
        new MyThread("线程1").start();
        new MyThread("线程2").start();
        new MyThread("线程3").start();
    }
}
class MyThread extends Thread{
   public MyThread(String name) {
        super(name);
    }
    @Override
    public void run() {
        System.out.println( Thread.currentThread().getName() + "正在执行");
    }
}